package com.zhiyou.service;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zhiyou.model.FYStudyAttendance;
import com.zhiyou.model.FyClass;
public interface TeacherManageService {

	//获取班级ID,以及时间,以及显示全部学生的考勤的次数
	List<FyClass> SelectByClassTID(@Param("class_id")Integer class_id,@Param("current_date")Integer year,@Param("current_date")Integer month);

	//根据学生ID显示考勤信息
	List<Map<String,String>> SelectByStudent(@Param("class_id")Integer class_id,@Param("current_date")Integer year,@Param("current_date")Integer month);

	//这是查学生考勤状况的
	List<Map<String,String>> SelectByStudentId(@Param("student_id")Integer student_id,@Param("current_date")Integer year,@Param("current_da")Integer month);
	//这是时间判断的详情页
	List<FYStudyAttendance> SelectByStudentIdTwo(@Param("student_id") Integer student_id,@Param("current_date")Integer year,@Param("current_da")Integer month);
			
	//根据学生姓名进行模糊查询
	List<Map<String, String>> selectByStudentName(@Param("student_name") String student_name);
	
	//请假
	void addone(@Param("student_id")Integer student_id,@Param("vacate_commit_time") Timestamp vacate_commit_time);
	//添加
	void add(FYStudyAttendance fyStudyAttendance);
	//修改
	void updateManage(FYStudyAttendance fyStudyAttendance);
	
	List<Map<String,String>> selectCheckSum(@Param("class_id") Integer class_id);
	
	//根据传过来的id值判断查询哪个出勤(id=1查询出勤人数;id=2查询未出勤人数)
	List<Map<String,String>> SelectUnify(@Param("id")Integer id,@Param("class_id")Integer class_id);
	
	//智慧班牌的模糊查询(id=1查询出勤人数;id=2查询未出勤人数)
	List<Map<String,String>> SelectMHCX(@Param("id")Integer id,@Param("class_id")Integer class_id,@Param("student_name") String student_name);

	
	
	
}
